package tx.hw.demo01;

/**
 * @author lwj
 * @date 2025-03-13
 * @vesion 1.0.0
 */
public class MyRunnable implements Runnable{
    /**
     * 水果数量
     */
    private int fruitNum = 0;
    /**
     * 锁对象
     */
    public static final String LOCK = "";

    @Override
    public void run() {
        Boy boy = new Boy(fruitNum);
        boy.pick();
        System.out.println(fruitNum);
        Girl girl = new Girl(fruitNum);
        girl.eat();
    }
}
